
    /**  
    * @Title: FontStyle.java
    * @Package com.utils.file
    * @Description: 
    * @author likai
    * @date 2018年1月9日
    * @version V1.0  
    */
    
package com.utils.file;

import java.awt.Color;
import java.awt.Font;

/**
    * @ClassName: FontStyle
    * @Description: 字体设置
    * @author likai
    * @date 2018年1月9日
    *
    */

public class FontStyle {
	private String fontStyle = "华文彩云";//字体：常用的字体有Times New Roman、Symbol、宋体、楷体等。
	private int fontsize = 40;//字号
	private int constant = Font.PLAIN;//风格 ：三个常量 lFont.PLAIN普通, Font.BOLD粗体, Font.ITALIC斜体
	private Color backgroundColor =Color.WHITE;// 字体图片背景色
	private Color fontColor = Color.orange;//字体颜色
	
	public FontStyle() {
		super();
		// TODO Auto-generated constructor stub
	}

	public FontStyle(String fontStyle, int fontsize, int constant, Color backgroundColor, Color fontColor) {
		super();
		this.fontStyle = fontStyle;
		this.fontsize = fontsize;
		this.constant = constant;
		this.backgroundColor = backgroundColor;
		this.fontColor = fontColor;
	}
	
	public FontStyle(String fontStyle, int fontsize, int constant, Color fontColor) {
		super();
		this.fontStyle = fontStyle;
		this.fontsize = fontsize;
		this.constant = constant;
		this.fontColor = fontColor;
	}

	public FontStyle(String fontStyle, int fontsize, Color fontColor) {
		super();
		this.fontStyle = fontStyle;
		this.fontsize = fontsize;
		this.fontColor = fontColor;
	}

	public FontStyle(int fontsize, Color backgroundColor, Color fontColor) {
		super();
		this.fontsize = fontsize;
		this.backgroundColor = backgroundColor;
		this.fontColor = fontColor;
	}
		
	public FontStyle(Color backgroundColor, Color fontColor) {
		super();
		this.backgroundColor = backgroundColor;
		this.fontColor = fontColor;
	}
	public String getFontStyle() {
		return fontStyle;
	}
	public int getFontsize() {
		return fontsize;
	}
	public int getConstant() {
		return constant;
	}
	public Color getBackgroundColor() {
		return backgroundColor;
	}
	public Color getFontColor() {
		return fontColor;
	}
	public void setFontStyle(String fontStyle) {
		this.fontStyle = fontStyle;
	}
	public void setFontsize(int fontsize) {
		this.fontsize = fontsize;
	}
	public void setConstant(int constant) {
		this.constant = constant;
	}
	public void setBackgroundColor(Color backgroundColor) {
		this.backgroundColor = backgroundColor;
	}
	public void setFontColor(Color fontColor) {
		this.fontColor = fontColor;
	}
	
	
}
